package org.frog.sgs.client.process.all;

import org.apache.mina.core.session.IoSession;
import org.frog.sgs.client.game.ClientInstance;
import org.frog.sgs.client.process.ClientProcessor;
import org.frog.sgs.event.SgsEventCode;
import org.frog.sgs.io.SgsMsg;

/**
 * @author duanxiangqi
 * @date 2012-10-30
 */
public class ClientProcessorWuXieKeJiAsk implements ClientProcessor {

	public void process(IoSession session, SgsMsg msg, ClientInstance instance) throws Exception {
		String target = msg.readString();
		String name = msg.readString();
		//TODO readInt scanner
		System.out.println("您是否为" + target + "的" + name + "使用【无懈可击】");
		int id = 0;//不使用
		SgsMsg returnMsg = new SgsMsg(SgsEventCode.WU_XIE_KE_JI_RESULT);
		returnMsg.writeInt(id);
		instance.sendMsg(returnMsg);
	}
}
